language-names: Use Windows APIs to acquire language names
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 10 Jan 2022 06:49:42 +0000 (14:49 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 12 Jan 2022 09:29:30 +0000 (17:29 +0800)
commitb666a767e4545e8a3c35193d5593b88c93f4f881
treeeb49fce78cede2d3a65a1b0be30df8a23c8d3d16
parentee2dd1acc79ee1e4c45e297dd9a313e8a11868d4
language-names: Use Windows APIs to acquire language names

Instead of relying on the iso-codes package, use the native Windows NLS APIs to
acquire the localized (translated) language names so that we do not need to
incur an extra runtime dependency on Windows.  It's not coverering 100% of the
languages that we would like to support through this, but should cover much of
the things that are required.
gtk/language-names.c